package com.lz.code.feign.consumer.controller;

import com.lz.code.feign.provider.server.HelloFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuzhi
 * @description
 * @date 2022/3/5 11:47
 */
@RestController
@Slf4j
public class HelloController {

    @Autowired
    private HelloFeignClient helloFeignClient;

    @GetMapping("/hello")
    public String hello () {
        log.info("consumer");
        return helloFeignClient.hello();
    }


}
